import {Button, Divider} from "antd"


export const AformConfig = [
    {
        type: "Input",
        lable: "发件人",
        placenholder: "请输入发件人",
        key: "from",
    },
    {
        type: "Input",
        lable: "收件人",
        placenholder: "请输入收件人",
        key: "to",
    },
    {
        type: "Input",
        lable: "主题",
        placenholder: "请输入主题",
        key: "subject",
    },
    {
        type: "Find",
        text: "收搜"
    },
    {
        type: "Reset",
        text: "重置"
    }

]


export const tableData = [
    // {
    //     key: '1',
    //     snedname: 'John Brown',
    //     receivename: "接收",
    //     theme: '黑色',
    //     sendtime: "发送时间",
    //     action:"删除"
    // },
]
export const tableColumns = (
    PassCommrnt: (id: number, flag: boolean) => void,
    Recomment: (record: object) => void,
    DeleteComment: (id: number) => void) => {
    return [

        {
            title: '发件人',
            dataIndex: 'status',
            key: 'status',
          
        },
        {
            title: '收件人',
            dataIndex: 'status',
            key: 'status',
          
        },
        {
            title: '发布时间',
            dataIndex: 'publishAt',
            key: 'publishAt',
        },
        {
            title: '操作',
            dataIndex: 'action',
            key: 'action',
            render: (_: any, record: any) => {
                // const id=record.id
                console.log(_, record)
                const id = record.id
                return (
                    // PassCommrnt: (id: number, flag: boolean) => void,
                    // Recomment: (record: object) => void,
                    // DeleteComment: (id: number) => void
                    Divider
                    // <>
                    //     <Button type='link' onClick={()=> PassCommrnt(id,true)}>编辑</Button>
                    //     <Button type='link'>发布</Button>
                    //     <Button type='link' onClick={()=>{Recomment(record)}}>查看访问</Button>
                    //     <Button type='link'>删除</Button>
                    // </>
                )
            }
        }
    ];

}
